<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/3/24
 * Time: 17:03
 */

namespace app\common\behavior;

class Cdn
{

    const CDN = "http://abc.tonghui520.xyz/";

    public static function getCdn($headimgurl){
        if(!(strpos($headimgurl,'http') !== false || strpos($headimgurl,'https') !== false)){
            $headimgurl = self::CDN.$headimgurl;
        }
        return $headimgurl;
    }
}
